<script setup lang="ts">
import { Search } from '@element-plus/icons-vue'
</script>

<template>
    <div class="search">
        <div class="search-input">

            <el-autocomplete
                v-model="state1"
                :fetch-suggestions="querySearch"
                clearable
                placeholder="点击输入医院名称"
                @select="handleSelect"
            />
        </div>
        <div class="search-button">
            <el-button type="primary" :icon="Search" size="large">搜索</el-button>
        </div>
    </div>
</template>

<style scoped lang="scss">
.search{
    width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0px 20px 0px;
    .search-input{
        width:600px;
    }
    .search-button{
        width:100px;
    }
}
// autocomplete 输入框
// 应该使用深度选择器
::v-deep(.el-input__wrapper) {
    margin-right: 10px;
    height: 40px
}

</style>
